<div id="pageInfo" data-title="用户注册"></div>
<section class="reg input_li">
	<div class="form">
		<form action='{url:/simple/reg_act}' method='post'>
			<input type="hidden" name='callback' value="{$callback}" />
			<ul>
				<li>
					<input class='input_text' placeholder="请输入您的用户名" initmsg="" type="text" name='username' pattern="^[\w\u0391-\uFFE5]{2,20}$" alt="填写2-20个字符" />
				</li>
				<li>
					<input class='input_text' placeholder="请输入您的密码" type="password" name='password' pattern="^\S{6,32}$" bind='repassword' alt='填写6-32个字符' />
				</li>
				<li>
					<input type="password" class='input_text' placeholder="确认密码" name='repassword' pattern="^\S{6,32}$" bind='password' alt='重复上面密码' />
				</li>
				<li>
					<input type='text' class='input_text input_captcha' placeholder="请输入验证码" name='captcha' pattern='^\w{5,10}$' alt='填写验证码' />
					<img src='{url:/simple/getCaptcha}' class="captchaImg" id="captchaImg" onclick="changeCaptcha()" />
				</li>

				{if:$this->_siteConfig->reg_option == 1}
				<li>
					<input class='input_text' placeholder="请输入您的邮箱" initmsg="" type="text" name='email' pattern="email" alt="填写正确格式" />
				</li>
				{/if}
				{if:$this->_siteConfig->reg_option == 3}
				<li>
					<input class="input_text" type="text" placeholder="请输入您的手机" initmsg="" name='mobile' pattern="mobi" alt="手机格式不正确" />
				</li>
				<li>
					<input class="input_text" type="text" placeholder="请输入验证码" initmsg="" name='mobile_code' pattern="^\w{4,6}$" alt="验证码不正确" />
					<input class="input_button" type="button" onclick="_sendMobileCode(this);" value="获取验证码">
				</li>
				{/if}

				<li>
					<input type="submit" class="input_submit" value="立即注册">
				</li>
			</ul>
		</form>
	</div>
</section>

<script type='text/javascript'>
$(function(){
	// 给底部导航加上当前样式
	$(".nav_user").addClass('on');
	$(".footer_login").hide();
});
</SCRIPT>